import request from '@/utils/request'
export default class index {
    // 获取系统信息
    static getSystemInfo( params:any = {}) {
        return request({
            url: 'system/info',
            method: 'get',
            params
        })
    };
    // 获取用户钱包信息
    static getUserWallet( params:any = {}) {
        return request({
            url: 'grasslandSheep/getUserWallet',
            method: 'get',
            params
        })
    };
    // 获取商店信息
    static getShopList( params:any = {}) {
        return request({
            url: 'familyCompetition/getShopList',
            method: 'get',
            params
        })
    };
    // 钻石购买商品
    static jdUserBuy( data:any = {}) {
        return request({
            url: 'familyCompetition/jdUserBuy',
            method: 'post',
            data
        })
    };
    // 金豆购买商品
    static useJdBuyGift( data:any = {}) {
        return request({
            url: 'familyCompetition/useJdBuyGift',
            method: 'post',
            data
        })
    };
    // 森林狩猎游戏信息
    static gameInfo( params:any = {}) {
        return request({
            url: 'grasslandSheep/gameInfo',
            method: 'get',
            params
        })
    };
    // 森林狩猎用户押注
    static userStake( data:any = {}) {
        return request({
            url: 'grasslandSheep/userStake',
            method: 'post',
            data
        })
    };
    // 森林狩猎押注用户列表
    static stakeUserList( params:any = {}) {
        return request({
            url: 'grasslandSheep/stakeUserList',
            method: 'get',
            params
        })
    };
    // 森林狩猎开奖记录
    static winLog( params:any = {}) {
        return request({
            url: 'grasslandSheep/winLog',
            method: 'get',
            params
        })
    };
    // 森林狩猎用户押注撤回
    static userStakeBack( params:any = {}) {
        return request({
            url: 'grasslandSheep/userStakeBack',
            method: 'get',
            params
        })
    };
    // 森林狩猎获取用户游戏结果
    static getGameResult( params:any = {}) {
        return request({
            url: 'grasslandSheep/getGameResult',
            method: 'get',
            params
        })
    };
    // 森林狩猎用户设置
    static userSet( params:any = {}) {
        return request({
            url: 'grasslandSheep/userSet',
            method: 'get',
            params
        })
    };
}